﻿
<!--
    
/* ****************************************************************************
 *
 * Copyright (c) Microsoft Corporation. 
 *
 * This source code is subject to terms and conditions of the Microsoft Public License. A
 * copy of the license can be found at http://go.microsoft.com/fwlink/?LinkID=131993. If
 * you cannot locate the Microsoft Public License, please send an email to
 * mixon@microsoft.com. By using this source code in any fashion, you are agreeing to
 * be bound by the terms of the Microsoft Public License.
 *
 * You must not remove this notice, or any other, from this software.
 *
 *
 * ***************************************************************************/
    
-->
<Canvas x:Class="MIXOnline.Descry.Pin"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<Canvas.Resources>
		<Storyboard x:Name="OscillateAnimation">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" RepeatBehavior="Forever">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:0.75" Value="-5" KeySpline="0,0,0.625,1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:1.75" Value="5" KeySpline="0,0,0.625,1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:2.5" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
        <Storyboard x:Name="ScaleUpAnimation">
            <DoubleAnimation BeginTime="00:00:00" From="1.0" To="1.1" Duration="00:00:00.2" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"/>
            <DoubleAnimation BeginTime="00:00:00" From="1.0" To="1.1" Duration="00:00:00.2" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)"/>
        </Storyboard>
        <Storyboard x:Name="ScaleDownAnimation">
            <DoubleAnimation BeginTime="00:00:00" From="1.1" To="1.0" Duration="00:00:00.2" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"/>
            <DoubleAnimation BeginTime="00:00:00" From="1.1" To="1.0" Duration="00:00:00.2" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)"/>
        </Storyboard>
    </Canvas.Resources>
    <Image x:Name="image" Stretch="Fill" Cursor="Hand" RenderTransformOrigin="0.5,0.5" MouseEnter="image_MouseEnter"  MouseLeave="image_MouseLeave" Source="../Images/marker_a_off.png">
    	<Image.RenderTransform>
    		<TransformGroup>
    			<ScaleTransform/>
    			<SkewTransform/>
    			<RotateTransform/>
    			<TranslateTransform/>
    		</TransformGroup>
    	</Image.RenderTransform>
    </Image>
</Canvas>    